package org.admanager.scamapping.plugin.scamapping.diagram.part;

import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import org.admanager.scamapping.plugin.scamapping.ComponentMapping;
import org.admanager.scamapping.plugin.scamapping.ComponentReferenceMapping;
import org.admanager.scamapping.plugin.scamapping.ComponentServiceMapping;
import org.admanager.scamapping.plugin.scamapping.CompositeMapping;
import org.admanager.scamapping.plugin.scamapping.ReferenceMapping;
import org.admanager.scamapping.plugin.scamapping.RootMapping;
import org.admanager.scamapping.plugin.scamapping.ServiceMapping;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.Component2EditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.Component3EditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentComponentCompartmentEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentMappingEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentMappingSourceEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentMappingTargetEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentPComponentCompartmentEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentPInnerComponentCompartmentEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentReference2EditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentReference3EditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentReferenceEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentReferenceMappingEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentReferenceMappingSourceEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentReferenceMappingTargetEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentService2EditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentService3EditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentServiceEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentServiceMappingEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentServiceMappingSourceEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ComponentServiceMappingTargetEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.Composite2EditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.CompositeCompositeCompartmentEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.CompositeEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.CompositeMappingEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.CompositeMappingSourceEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.CompositeMappingTargetEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.CompositePCompositeCompartmentEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.DocumentRootDocumentRootCompartmentEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.DocumentRootEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.PatternEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.PatternPatternCompartmentEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.Reference2EditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ReferenceEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ReferenceMappingEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ReferenceMappingSourceEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ReferenceMappingTargetEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.RootMappingEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.Service2EditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ServiceEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ServiceMappingEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ServiceMappingSourceEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.edit.parts.ServiceMappingTargetEditPart;
import org.admanager.scamapping.plugin.scamapping.diagram.providers.MappingElementTypes;
import org.admanager.simplifiedsca.plugin.simplifiedsca.Component;
import org.admanager.simplifiedsca.plugin.simplifiedsca.ComponentReference;
import org.admanager.simplifiedsca.plugin.simplifiedsca.ComponentService;
import org.admanager.simplifiedsca.plugin.simplifiedsca.Composite;
import org.admanager.simplifiedsca.plugin.simplifiedsca.DocumentRoot;
import org.admanager.simplifiedsca.plugin.simplifiedsca.Reference;
import org.admanager.simplifiedsca.plugin.simplifiedsca.Service;
import org.admanager.soageneralpattern.plugin.soageneralpattern.Element;
import org.admanager.soageneralpattern.plugin.soageneralpattern.Pattern;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.util.EcoreUtil;
import org.eclipse.gmf.runtime.notation.View;

/**
 * @generated
 */
public class MappingDiagramUpdater {

	/**
	 * @generated
	 */
	public static boolean isShortcutOrphaned(View view) {
		return !view.isSetElement() || view.getElement() == null
				|| view.getElement().eIsProxy();
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/getSemanticChildren(
			View view) {
		switch (MappingVisualIDRegistry.getVisualID(view)) {
		case RootMappingEditPart.VISUAL_ID:
			return getRootMapping_1000SemanticChildren(view);
		case DocumentRootDocumentRootCompartmentEditPart.VISUAL_ID:
			return getDocumentRootDocumentRootCompartment_7001SemanticChildren(view);
		case CompositeCompositeCompartmentEditPart.VISUAL_ID:
			return getCompositeCompositeCompartment_7002SemanticChildren(view);
		case ComponentComponentCompartmentEditPart.VISUAL_ID:
			return getComponentComponentCompartment_7003SemanticChildren(view);
		case PatternPatternCompartmentEditPart.VISUAL_ID:
			return getPatternPatternCompartment_7004SemanticChildren(view);
		case ComponentPComponentCompartmentEditPart.VISUAL_ID:
			return getComponentPComponentCompartment_7005SemanticChildren(view);
		case CompositePCompositeCompartmentEditPart.VISUAL_ID:
			return getCompositePCompositeCompartment_7006SemanticChildren(view);
		case ComponentPInnerComponentCompartmentEditPart.VISUAL_ID:
			return getComponentPInnerComponentCompartment_7007SemanticChildren(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/getRootMapping_1000SemanticChildren(
			View view) {
		if (!view.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		RootMapping modelElement = (RootMapping) view.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getComponentreferencemapping()
				.iterator(); it.hasNext();) {
			ComponentReferenceMapping childElement = (ComponentReferenceMapping) it
					.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ComponentReferenceMappingEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getComponentservicemapping()
				.iterator(); it.hasNext();) {
			ComponentServiceMapping childElement = (ComponentServiceMapping) it
					.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ComponentServiceMappingEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getCompositemapping().iterator(); it
				.hasNext();) {
			CompositeMapping childElement = (CompositeMapping) it.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == CompositeMappingEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getComponentmapping().iterator(); it
				.hasNext();) {
			ComponentMapping childElement = (ComponentMapping) it.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ComponentMappingEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getServicemapping().iterator(); it
				.hasNext();) {
			ServiceMapping childElement = (ServiceMapping) it.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ServiceMappingEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getReferencemapping().iterator(); it
				.hasNext();) {
			ReferenceMapping childElement = (ReferenceMapping) it.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ReferenceMappingEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		{
			DocumentRoot childElement = modelElement.getScacomposite();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == DocumentRootEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
			}
		}
		{
			Pattern childElement = modelElement.getSoapattern();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == PatternEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/getDocumentRootDocumentRootCompartment_7001SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		DocumentRoot modelElement = (DocumentRoot) containerView.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getComposite().iterator(); it
				.hasNext();) {
			Composite childElement = (Composite) it.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == CompositeEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/getCompositeCompositeCompartment_7002SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		Composite modelElement = (Composite) containerView.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getComponent().iterator(); it
				.hasNext();) {
			Component childElement = (Component) it.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ComponentEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getService().iterator(); it
				.hasNext();) {
			Service childElement = (Service) it.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ServiceEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getReference().iterator(); it
				.hasNext();) {
			Reference childElement = (Reference) it.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ReferenceEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/getComponentComponentCompartment_7003SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		Component modelElement = (Component) containerView.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getReference().iterator(); it
				.hasNext();) {
			ComponentReference childElement = (ComponentReference) it.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ComponentReferenceEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getService().iterator(); it
				.hasNext();) {
			ComponentService childElement = (ComponentService) it.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ComponentServiceEditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/getPatternPatternCompartment_7004SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		Pattern modelElement = (Pattern) containerView.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getElements().iterator(); it
				.hasNext();) {
			Element childElement = (Element) it.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == Component2EditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
			if (visualID == Composite2EditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/getComponentPComponentCompartment_7005SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		org.admanager.soageneralpattern.plugin.soageneralpattern.Component modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.Component) containerView
				.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getService().iterator(); it
				.hasNext();) {
			org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentService childElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentService) it
					.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ComponentService2EditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getReference().iterator(); it
				.hasNext();) {
			org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentReference childElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentReference) it
					.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ComponentReference2EditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/getCompositePCompositeCompartment_7006SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		org.admanager.soageneralpattern.plugin.soageneralpattern.Composite modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.Composite) containerView
				.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getComponent().iterator(); it
				.hasNext();) {
			org.admanager.soageneralpattern.plugin.soageneralpattern.Component childElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.Component) it
					.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == Component3EditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getService().iterator(); it
				.hasNext();) {
			org.admanager.soageneralpattern.plugin.soageneralpattern.Service childElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.Service) it
					.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == Service2EditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getReference().iterator(); it
				.hasNext();) {
			org.admanager.soageneralpattern.plugin.soageneralpattern.Reference childElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.Reference) it
					.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == Reference2EditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/getComponentPInnerComponentCompartment_7007SemanticChildren(
			View view) {
		if (false == view.eContainer() instanceof View) {
			return Collections.EMPTY_LIST;
		}
		View containerView = (View) view.eContainer();
		if (!containerView.isSetElement()) {
			return Collections.EMPTY_LIST;
		}
		org.admanager.soageneralpattern.plugin.soageneralpattern.Component modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.Component) containerView
				.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingNodeDescriptor]*/();
		for (Iterator/*[?]*/it = modelElement.getService().iterator(); it
				.hasNext();) {
			org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentService childElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentService) it
					.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ComponentService3EditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		for (Iterator/*[?]*/it = modelElement.getReference().iterator(); it
				.hasNext();) {
			org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentReference childElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentReference) it
					.next();
			int visualID = MappingVisualIDRegistry.getNodeVisualID(view,
					childElement);
			if (visualID == ComponentReference3EditPart.VISUAL_ID) {
				result.add(new MappingNodeDescriptor(childElement, visualID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getContainedLinks(
			View view) {
		switch (MappingVisualIDRegistry.getVisualID(view)) {
		case RootMappingEditPart.VISUAL_ID:
			return getRootMapping_1000ContainedLinks(view);
		case ComponentReferenceMappingEditPart.VISUAL_ID:
			return getComponentReferenceMapping_2001ContainedLinks(view);
		case ComponentServiceMappingEditPart.VISUAL_ID:
			return getComponentServiceMapping_2002ContainedLinks(view);
		case CompositeMappingEditPart.VISUAL_ID:
			return getCompositeMapping_2003ContainedLinks(view);
		case ComponentMappingEditPart.VISUAL_ID:
			return getComponentMapping_2004ContainedLinks(view);
		case ServiceMappingEditPart.VISUAL_ID:
			return getServiceMapping_2005ContainedLinks(view);
		case ReferenceMappingEditPart.VISUAL_ID:
			return getReferenceMapping_2006ContainedLinks(view);
		case DocumentRootEditPart.VISUAL_ID:
			return getDocumentRoot_2008ContainedLinks(view);
		case PatternEditPart.VISUAL_ID:
			return getPattern_2009ContainedLinks(view);
		case CompositeEditPart.VISUAL_ID:
			return getComposite_3001ContainedLinks(view);
		case ComponentEditPart.VISUAL_ID:
			return getComponent_3002ContainedLinks(view);
		case ComponentReferenceEditPart.VISUAL_ID:
			return getComponentReference_3003ContainedLinks(view);
		case ComponentServiceEditPart.VISUAL_ID:
			return getComponentService_3004ContainedLinks(view);
		case ServiceEditPart.VISUAL_ID:
			return getService_3005ContainedLinks(view);
		case ReferenceEditPart.VISUAL_ID:
			return getReference_3006ContainedLinks(view);
		case Component2EditPart.VISUAL_ID:
			return getComponent_3007ContainedLinks(view);
		case ComponentService2EditPart.VISUAL_ID:
			return getComponentService_3008ContainedLinks(view);
		case ComponentReference2EditPart.VISUAL_ID:
			return getComponentReference_3009ContainedLinks(view);
		case Composite2EditPart.VISUAL_ID:
			return getComposite_3010ContainedLinks(view);
		case Component3EditPart.VISUAL_ID:
			return getComponent_3011ContainedLinks(view);
		case ComponentService3EditPart.VISUAL_ID:
			return getComponentService_3012ContainedLinks(view);
		case ComponentReference3EditPart.VISUAL_ID:
			return getComponentReference_3013ContainedLinks(view);
		case Service2EditPart.VISUAL_ID:
			return getService_3014ContainedLinks(view);
		case Reference2EditPart.VISUAL_ID:
			return getReference_3015ContainedLinks(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingLinks(
			View view) {
		switch (MappingVisualIDRegistry.getVisualID(view)) {
		case ComponentReferenceMappingEditPart.VISUAL_ID:
			return getComponentReferenceMapping_2001IncomingLinks(view);
		case ComponentServiceMappingEditPart.VISUAL_ID:
			return getComponentServiceMapping_2002IncomingLinks(view);
		case CompositeMappingEditPart.VISUAL_ID:
			return getCompositeMapping_2003IncomingLinks(view);
		case ComponentMappingEditPart.VISUAL_ID:
			return getComponentMapping_2004IncomingLinks(view);
		case ServiceMappingEditPart.VISUAL_ID:
			return getServiceMapping_2005IncomingLinks(view);
		case ReferenceMappingEditPart.VISUAL_ID:
			return getReferenceMapping_2006IncomingLinks(view);
		case DocumentRootEditPart.VISUAL_ID:
			return getDocumentRoot_2008IncomingLinks(view);
		case PatternEditPart.VISUAL_ID:
			return getPattern_2009IncomingLinks(view);
		case CompositeEditPart.VISUAL_ID:
			return getComposite_3001IncomingLinks(view);
		case ComponentEditPart.VISUAL_ID:
			return getComponent_3002IncomingLinks(view);
		case ComponentReferenceEditPart.VISUAL_ID:
			return getComponentReference_3003IncomingLinks(view);
		case ComponentServiceEditPart.VISUAL_ID:
			return getComponentService_3004IncomingLinks(view);
		case ServiceEditPart.VISUAL_ID:
			return getService_3005IncomingLinks(view);
		case ReferenceEditPart.VISUAL_ID:
			return getReference_3006IncomingLinks(view);
		case Component2EditPart.VISUAL_ID:
			return getComponent_3007IncomingLinks(view);
		case ComponentService2EditPart.VISUAL_ID:
			return getComponentService_3008IncomingLinks(view);
		case ComponentReference2EditPart.VISUAL_ID:
			return getComponentReference_3009IncomingLinks(view);
		case Composite2EditPart.VISUAL_ID:
			return getComposite_3010IncomingLinks(view);
		case Component3EditPart.VISUAL_ID:
			return getComponent_3011IncomingLinks(view);
		case ComponentService3EditPart.VISUAL_ID:
			return getComponentService_3012IncomingLinks(view);
		case ComponentReference3EditPart.VISUAL_ID:
			return getComponentReference_3013IncomingLinks(view);
		case Service2EditPart.VISUAL_ID:
			return getService_3014IncomingLinks(view);
		case Reference2EditPart.VISUAL_ID:
			return getReference_3015IncomingLinks(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingLinks(
			View view) {
		switch (MappingVisualIDRegistry.getVisualID(view)) {
		case ComponentReferenceMappingEditPart.VISUAL_ID:
			return getComponentReferenceMapping_2001OutgoingLinks(view);
		case ComponentServiceMappingEditPart.VISUAL_ID:
			return getComponentServiceMapping_2002OutgoingLinks(view);
		case CompositeMappingEditPart.VISUAL_ID:
			return getCompositeMapping_2003OutgoingLinks(view);
		case ComponentMappingEditPart.VISUAL_ID:
			return getComponentMapping_2004OutgoingLinks(view);
		case ServiceMappingEditPart.VISUAL_ID:
			return getServiceMapping_2005OutgoingLinks(view);
		case ReferenceMappingEditPart.VISUAL_ID:
			return getReferenceMapping_2006OutgoingLinks(view);
		case DocumentRootEditPart.VISUAL_ID:
			return getDocumentRoot_2008OutgoingLinks(view);
		case PatternEditPart.VISUAL_ID:
			return getPattern_2009OutgoingLinks(view);
		case CompositeEditPart.VISUAL_ID:
			return getComposite_3001OutgoingLinks(view);
		case ComponentEditPart.VISUAL_ID:
			return getComponent_3002OutgoingLinks(view);
		case ComponentReferenceEditPart.VISUAL_ID:
			return getComponentReference_3003OutgoingLinks(view);
		case ComponentServiceEditPart.VISUAL_ID:
			return getComponentService_3004OutgoingLinks(view);
		case ServiceEditPart.VISUAL_ID:
			return getService_3005OutgoingLinks(view);
		case ReferenceEditPart.VISUAL_ID:
			return getReference_3006OutgoingLinks(view);
		case Component2EditPart.VISUAL_ID:
			return getComponent_3007OutgoingLinks(view);
		case ComponentService2EditPart.VISUAL_ID:
			return getComponentService_3008OutgoingLinks(view);
		case ComponentReference2EditPart.VISUAL_ID:
			return getComponentReference_3009OutgoingLinks(view);
		case Composite2EditPart.VISUAL_ID:
			return getComposite_3010OutgoingLinks(view);
		case Component3EditPart.VISUAL_ID:
			return getComponent_3011OutgoingLinks(view);
		case ComponentService3EditPart.VISUAL_ID:
			return getComponentService_3012OutgoingLinks(view);
		case ComponentReference3EditPart.VISUAL_ID:
			return getComponentReference_3013OutgoingLinks(view);
		case Service2EditPart.VISUAL_ID:
			return getService_3014OutgoingLinks(view);
		case Reference2EditPart.VISUAL_ID:
			return getReference_3015OutgoingLinks(view);
		}
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getRootMapping_1000ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReferenceMapping_2001ContainedLinks(
			View view) {
		ComponentReferenceMapping modelElement = (ComponentReferenceMapping) view
				.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentReferenceMapping_Target_4009(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentReferenceMapping_Source_4010(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentServiceMapping_2002ContainedLinks(
			View view) {
		ComponentServiceMapping modelElement = (ComponentServiceMapping) view
				.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentServiceMapping_Source_4008(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentServiceMapping_Target_4012(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getCompositeMapping_2003ContainedLinks(
			View view) {
		CompositeMapping modelElement = (CompositeMapping) view.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_CompositeMapping_Target_4001(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_CompositeMapping_Source_4011(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentMapping_2004ContainedLinks(
			View view) {
		ComponentMapping modelElement = (ComponentMapping) view.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentMapping_Target_4006(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentMapping_Source_4007(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getServiceMapping_2005ContainedLinks(
			View view) {
		ServiceMapping modelElement = (ServiceMapping) view.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_ServiceMapping_Source_4002(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_ServiceMapping_Target_4003(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getReferenceMapping_2006ContainedLinks(
			View view) {
		ReferenceMapping modelElement = (ReferenceMapping) view.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_ReferenceMapping_Target_4004(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_ReferenceMapping_Source_4005(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getDocumentRoot_2008ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getPattern_2009ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComposite_3001ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponent_3002ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReference_3003ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentService_3004ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getService_3005ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getReference_3006ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponent_3007ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentService_3008ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReference_3009ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComposite_3010ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponent_3011ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentService_3012ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReference_3013ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getService_3014ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getReference_3015ContainedLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReferenceMapping_2001IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentServiceMapping_2002IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getCompositeMapping_2003IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentMapping_2004IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getServiceMapping_2005IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getReferenceMapping_2006IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getDocumentRoot_2008IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getPattern_2009IncomingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComposite_3001IncomingLinks(
			View view) {
		Composite modelElement = (Composite) view.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_CompositeMapping_Source_4011(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponent_3002IncomingLinks(
			View view) {
		Component modelElement = (Component) view.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ComponentMapping_Source_4007(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReference_3003IncomingLinks(
			View view) {
		ComponentReference modelElement = (ComponentReference) view
				.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ComponentReferenceMapping_Source_4010(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentService_3004IncomingLinks(
			View view) {
		ComponentService modelElement = (ComponentService) view.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ComponentServiceMapping_Source_4008(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getService_3005IncomingLinks(
			View view) {
		Service modelElement = (Service) view.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ServiceMapping_Source_4002(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getReference_3006IncomingLinks(
			View view) {
		Reference modelElement = (Reference) view.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ReferenceMapping_Source_4005(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponent_3007IncomingLinks(
			View view) {
		org.admanager.soageneralpattern.plugin.soageneralpattern.Component modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.Component) view
				.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ComponentMapping_Target_4006(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentService_3008IncomingLinks(
			View view) {
		org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentService modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentService) view
				.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ComponentServiceMapping_Target_4012(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReference_3009IncomingLinks(
			View view) {
		org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentReference modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentReference) view
				.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ComponentReferenceMapping_Target_4009(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComposite_3010IncomingLinks(
			View view) {
		org.admanager.soageneralpattern.plugin.soageneralpattern.Composite modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.Composite) view
				.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_CompositeMapping_Target_4001(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponent_3011IncomingLinks(
			View view) {
		org.admanager.soageneralpattern.plugin.soageneralpattern.Component modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.Component) view
				.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ComponentMapping_Target_4006(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentService_3012IncomingLinks(
			View view) {
		org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentService modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentService) view
				.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ComponentServiceMapping_Target_4012(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReference_3013IncomingLinks(
			View view) {
		org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentReference modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentReference) view
				.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ComponentReferenceMapping_Target_4009(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getService_3014IncomingLinks(
			View view) {
		org.admanager.soageneralpattern.plugin.soageneralpattern.Service modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.Service) view
				.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ServiceMapping_Target_4003(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getReference_3015IncomingLinks(
			View view) {
		org.admanager.soageneralpattern.plugin.soageneralpattern.Reference modelElement = (org.admanager.soageneralpattern.plugin.soageneralpattern.Reference) view
				.getElement();
		Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences = EcoreUtil.CrossReferencer
				.find(view.eResource().getResourceSet().getResources());
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getIncomingFeatureModelFacetLinks_ReferenceMapping_Target_4004(
				modelElement, crossReferences));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReferenceMapping_2001OutgoingLinks(
			View view) {
		ComponentReferenceMapping modelElement = (ComponentReferenceMapping) view
				.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentReferenceMapping_Target_4009(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentReferenceMapping_Source_4010(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentServiceMapping_2002OutgoingLinks(
			View view) {
		ComponentServiceMapping modelElement = (ComponentServiceMapping) view
				.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentServiceMapping_Source_4008(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentServiceMapping_Target_4012(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getCompositeMapping_2003OutgoingLinks(
			View view) {
		CompositeMapping modelElement = (CompositeMapping) view.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_CompositeMapping_Target_4001(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_CompositeMapping_Source_4011(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentMapping_2004OutgoingLinks(
			View view) {
		ComponentMapping modelElement = (ComponentMapping) view.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentMapping_Target_4006(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_ComponentMapping_Source_4007(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getServiceMapping_2005OutgoingLinks(
			View view) {
		ServiceMapping modelElement = (ServiceMapping) view.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_ServiceMapping_Source_4002(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_ServiceMapping_Target_4003(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getReferenceMapping_2006OutgoingLinks(
			View view) {
		ReferenceMapping modelElement = (ReferenceMapping) view.getElement();
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		result.addAll(getOutgoingFeatureModelFacetLinks_ReferenceMapping_Target_4004(modelElement));
		result.addAll(getOutgoingFeatureModelFacetLinks_ReferenceMapping_Source_4005(modelElement));
		return result;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getDocumentRoot_2008OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getPattern_2009OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComposite_3001OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponent_3002OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReference_3003OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentService_3004OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getService_3005OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getReference_3006OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponent_3007OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentService_3008OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReference_3009OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComposite_3010OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponent_3011OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentService_3012OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getComponentReference_3013OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getService_3014OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	public static List/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getReference_3015OutgoingLinks(
			View view) {
		return Collections.EMPTY_LIST;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_CompositeMapping_Target_4001(
			org.admanager.soageneralpattern.plugin.soageneralpattern.Composite target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getCompositeMapping_Target()) {
				result.add(new MappingLinkDescriptor(setting.getEObject(),
						target,
						MappingElementTypes.CompositeMappingTarget_4001,
						CompositeMappingTargetEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_ServiceMapping_Source_4002(
			Service target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getServiceMapping_Source()) {
				result.add(new MappingLinkDescriptor(setting.getEObject(),
						target, MappingElementTypes.ServiceMappingSource_4002,
						ServiceMappingSourceEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_ServiceMapping_Target_4003(
			org.admanager.soageneralpattern.plugin.soageneralpattern.Service target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getServiceMapping_Target()) {
				result.add(new MappingLinkDescriptor(setting.getEObject(),
						target, MappingElementTypes.ServiceMappingTarget_4003,
						ServiceMappingTargetEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_ReferenceMapping_Target_4004(
			org.admanager.soageneralpattern.plugin.soageneralpattern.Reference target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getReferenceMapping_Target()) {
				result.add(new MappingLinkDescriptor(setting.getEObject(),
						target,
						MappingElementTypes.ReferenceMappingTarget_4004,
						ReferenceMappingTargetEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_ReferenceMapping_Source_4005(
			Reference target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getReferenceMapping_Source()) {
				result.add(new MappingLinkDescriptor(setting.getEObject(),
						target,
						MappingElementTypes.ReferenceMappingSource_4005,
						ReferenceMappingSourceEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_ComponentMapping_Target_4006(
			org.admanager.soageneralpattern.plugin.soageneralpattern.Component target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getComponentMapping_Target()) {
				result.add(new MappingLinkDescriptor(setting.getEObject(),
						target,
						MappingElementTypes.ComponentMappingTarget_4006,
						ComponentMappingTargetEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_ComponentMapping_Source_4007(
			Component target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getComponentMapping_Source()) {
				result.add(new MappingLinkDescriptor(setting.getEObject(),
						target,
						MappingElementTypes.ComponentMappingSource_4007,
						ComponentMappingSourceEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_ComponentServiceMapping_Source_4008(
			ComponentService target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getComponentServiceMapping_Source()) {
				result.add(new MappingLinkDescriptor(setting.getEObject(),
						target,
						MappingElementTypes.ComponentServiceMappingSource_4008,
						ComponentServiceMappingSourceEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_ComponentReferenceMapping_Target_4009(
			org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentReference target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getComponentReferenceMapping_Target()) {
				result.add(new MappingLinkDescriptor(
						setting.getEObject(),
						target,
						MappingElementTypes.ComponentReferenceMappingTarget_4009,
						ComponentReferenceMappingTargetEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_ComponentReferenceMapping_Source_4010(
			ComponentReference target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getComponentReferenceMapping_Source()) {
				result.add(new MappingLinkDescriptor(
						setting.getEObject(),
						target,
						MappingElementTypes.ComponentReferenceMappingSource_4010,
						ComponentReferenceMappingSourceEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_CompositeMapping_Source_4011(
			Composite target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getCompositeMapping_Source()) {
				result.add(new MappingLinkDescriptor(setting.getEObject(),
						target,
						MappingElementTypes.CompositeMappingSource_4011,
						CompositeMappingSourceEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getIncomingFeatureModelFacetLinks_ComponentServiceMapping_Target_4012(
			org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentService target,
			Map/*[org.eclipse.emf.ecore.EObject, java.util.Collection<org.eclipse.emf.ecore.EStructuralFeature.Setting>]*/crossReferences) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Collection/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/settings = (Collection) crossReferences
				.get(target);
		for (Iterator/*[org.eclipse.emf.ecore.EStructuralFeature.Setting]*/it = settings
				.iterator(); it.hasNext();) {
			EStructuralFeature.Setting setting = (EStructuralFeature.Setting) it
					.next();
			if (setting.getEStructuralFeature() == org.admanager.scamapping.plugin.scamapping.scamappingPackage.eINSTANCE
					.getComponentServiceMapping_Target()) {
				result.add(new MappingLinkDescriptor(setting.getEObject(),
						target,
						MappingElementTypes.ComponentServiceMappingTarget_4012,
						ComponentServiceMappingTargetEditPart.VISUAL_ID));
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_CompositeMapping_Target_4001(
			CompositeMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		org.admanager.soageneralpattern.plugin.soageneralpattern.Composite destination = source
				.getTarget();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.CompositeMappingTarget_4001,
				CompositeMappingTargetEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_ServiceMapping_Source_4002(
			ServiceMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Service destination = source.getSource();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.ServiceMappingSource_4002,
				ServiceMappingSourceEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_ServiceMapping_Target_4003(
			ServiceMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		org.admanager.soageneralpattern.plugin.soageneralpattern.Service destination = source
				.getTarget();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.ServiceMappingTarget_4003,
				ServiceMappingTargetEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_ReferenceMapping_Target_4004(
			ReferenceMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		org.admanager.soageneralpattern.plugin.soageneralpattern.Reference destination = source
				.getTarget();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.ReferenceMappingTarget_4004,
				ReferenceMappingTargetEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_ReferenceMapping_Source_4005(
			ReferenceMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Reference destination = source.getSource();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.ReferenceMappingSource_4005,
				ReferenceMappingSourceEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_ComponentMapping_Target_4006(
			ComponentMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		org.admanager.soageneralpattern.plugin.soageneralpattern.Component destination = source
				.getTarget();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.ComponentMappingTarget_4006,
				ComponentMappingTargetEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_ComponentMapping_Source_4007(
			ComponentMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Component destination = source.getSource();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.ComponentMappingSource_4007,
				ComponentMappingSourceEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_ComponentServiceMapping_Source_4008(
			ComponentServiceMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		ComponentService destination = source.getSource();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.ComponentServiceMappingSource_4008,
				ComponentServiceMappingSourceEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_ComponentReferenceMapping_Target_4009(
			ComponentReferenceMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentReference destination = source
				.getTarget();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.ComponentReferenceMappingTarget_4009,
				ComponentReferenceMappingTargetEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_ComponentReferenceMapping_Source_4010(
			ComponentReferenceMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		ComponentReference destination = source.getSource();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.ComponentReferenceMappingSource_4010,
				ComponentReferenceMappingSourceEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_CompositeMapping_Source_4011(
			CompositeMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		Composite destination = source.getSource();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.CompositeMappingSource_4011,
				CompositeMappingSourceEditPart.VISUAL_ID));
		return result;
	}

	/**
	 * @generated
	 */
	private static Collection/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/getOutgoingFeatureModelFacetLinks_ComponentServiceMapping_Target_4012(
			ComponentServiceMapping source) {
		LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/result = new LinkedList/*[org.admanager.scamapping.plugin.scamapping.diagram.part.MappingLinkDescriptor]*/();
		org.admanager.soageneralpattern.plugin.soageneralpattern.ComponentService destination = source
				.getTarget();
		if (destination == null) {
			return result;
		}
		result.add(new MappingLinkDescriptor(source, destination,
				MappingElementTypes.ComponentServiceMappingTarget_4012,
				ComponentServiceMappingTargetEditPart.VISUAL_ID));
		return result;
	}

}
